﻿using System;
using DapperExtensions.Mapper;
using Newtonsoft.Json;
using ZilLion.Service.Core.Domain.EntityBase.JsonConverter;

namespace ZL.CRM.CommonEntity.AccYwDetail
{
    public class Cfv4Accopr3Delc:Cfv4Accopr3Addc
    {

        /// <summary>
        ///  押金
        /// </summary>
        public decimal Oprcdeposit { get; set; }

        /// <summary>
        ///  工本费
        /// </summary>
        public decimal Oprcfee { get; set; }

        /// <summary>
        ///  押金收款营业日
        /// </summary>
        [JsonConverter(typeof(ChinaDateTimeConverter))]
        public DateTime Oprskyydate { get; set; }

        /// <summary>
        ///  押金收款机构id
        /// </summary>
        public int Oprskbrid { get; set; }

        /// <summary>
        ///  押金收款机构名称
        /// </summary>
        public string Oprskbrname { get; set; }

        /// <summary>
        ///  押金收款品牌id
        /// </summary>
        public int Oprskppid { get; set; }

        /// <summary>
        ///  押金收款品牌名称
        /// </summary>
        public string Oprskppname { get; set; }

    }
    public class Cfv4Accopr3DelcMapper : ClassMapper<Cfv4Accopr3Delc>
    {
        public Cfv4Accopr3DelcMapper()
        {
            Table("#Cfv4Accopr3Delc");
            Map(f => f.Oprsno).Column("Oprsno");
            Map(f => f.Oprcardno).Column("Oprcardno");
            Map(f => f.Oprctype).Column("Oprctype");
            Map(f => f.Oprcdeposit).Column("Oprcdeposit");
            Map(f => f.Oprcfee).Column("Oprcfee");
            Map(f => f.Oprskyydate).Column("Oprskyydate");
            Map(f => f.Oprskbrid).Column("Oprskbrid");
            Map(f => f.Oprskbrname).Column("Oprskbrname");
            Map(f => f.Oprskppid).Column("Oprskppid");
            Map(f => f.Oprskppname).Column("Oprskppname");

        }

    }
}
